package com.xy.modular.basics.service.impl;

import com.xy.framework.base.dao.IBaseDao;
import com.xy.framework.base.service.BaseServiceImpl;
import com.xy.framework.exceptions.ValidateParamException;
import com.xy.modular.basics.dao.UserAuthLocalMapper;
import com.xy.modular.basics.entity.user.UserAuthLocal;
import com.xy.modular.basics.service.IUserAuthLocalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userAuthLocal")
public class IUserAuthLocalServiceImpl extends BaseServiceImpl<UserAuthLocal, String> implements IUserAuthLocalService {

	@Resource
	private UserAuthLocalMapper userAuthLocalMapper;

	@SuppressWarnings("rawtypes")
	@Override
	protected IBaseDao getBaseDao() {
		return this.userAuthLocalMapper;
	}

	@Override
	public void validateEntity(UserAuthLocal userAuthLocal) throws ValidateParamException {

	}

	@Override
	public UserAuthLocal getByIdentifier(String identifier) {
		return userAuthLocalMapper.getByIdentifier(identifier);
	}
}
